package exception.exception01;

public class TryCatchDemo {
    public static void main(String[] args) {
        try {
            // String s1 = "";
           // String s1 = null;
            String s1 = "abc";
            System.out.println(Integer.parseInt(s1));
        } catch (StringIndexOutOfBoundsException e) {
            System.out.println("数组下表越界异常");
        } catch (NullPointerException e
        ) {
            System.out.println("空指针异常");
        }catch (Exception e){
            System.out.println("有问题了,但不知道是啥问题");
        }


    }


}
